package com.sdy.hospitalguard.biz.dto;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.sdy.common.utils.DateUtil;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * <p>
 * 注释
 * </p>
 *
 * @author fb
 * @since 2020/5/11
 */
@Data
@Accessors(chain = true)
@ApiModel(value = "陪护管理界面数据")
public class EscortManageDTO {

    @ApiModelProperty(value = "陪护表id")
    @ExcelIgnore
    private Integer id;

    @ApiModelProperty(value = "病区id")
    @ExcelIgnore
    private Integer areaId;

    @ColumnWidth(15)
    @ApiModelProperty(value = "床位号")
    @ExcelProperty(value = "床位号", index = 0)
    private String sickbedNumber;

    @ColumnWidth(20)
    @ApiModelProperty(value = "患者姓名")
    @ExcelProperty(value = "患者姓名", index = 1)
    private String patientName;

    @ColumnWidth(20)
    @ApiModelProperty(value = "陪护者姓名")
    @ExcelProperty(value = "陪护者姓名", index = 2)
    private String escortName;

    @ColumnWidth(20)
    @ApiModelProperty(value = "陪护者手机号")
    @ExcelProperty(value = "陪护者手机号", index = 3)
    private String escortPhone;

    @ColumnWidth(10)
    @ApiModelProperty(value = "状态")
    @ExcelProperty(value = "状态", index = 4)
    private Integer status;

    @ColumnWidth(25)
    @ApiModelProperty(value = "关联时间")
    @JsonFormat(pattern = DateUtil.DATETIME_FORMAT)
    @ExcelProperty(value = "关联时间", index = 5)
    private Date startTime;

}
